<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>picture_display</title>
</head>
<body>
    <div id="app">
        <input type="button" @click="changeIsShow" value="picture">
        <img v-show="isShow" src="01.png" alt="">
        <input type="button" @click="add" value="picture">
        <img v-show="age>17" src="01.png" alt="">
        <h2>{{ age }}</h2>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                isShow:false,
                age:17
            },
            methods:{
                changeIsShow:function () {
                    this.isShow = !this.isShow
                },
                add:function () {
                    this.age++;
                }
            }
        })
    </script>
</body>
</html>